package edu.sctu.zcy.month201505.subwaysystem.V3;

/**
 * Created by user24 on 2015/6/4.
 */
public class MonitorMachine {

    public String standard = "易燃易爆，管制刀具，有毒物质";

    public boolean checkPackage(Passenger p){

        boolean package1 = false;
        if(p.hasPackage()){
            if(standard.contains(p.package1.name)){

                package1 = true;

            } else {

                package1 = false;
            }
        }
        return package1;
    }
    public boolean checkWater(Passenger p){

        boolean water1 = false;
        if(p.hasWater()){
            if(standard.contains(p.water.name)){
                water1 = true;
            }else {
                water1 = false;
            }
        }
    return water1;
    }
}
